<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="./css/style.css" rel="stylesheet" type="text/css" />
</head>
<body id="page">
	<h2>添加产品</h2>
	<form action="back_addProduct.do" method="post">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<th>产品名称：</th>
				<td colspan="2"><input type="text" name="product_name"
					size="130" align="middle" /></td>
			</tr>
			<tr>
				<th>产品市场价：</th>
				<td colspan="2"><input type="text" name="product_price"
					size="130" align="middle" /></td>
			</tr>
			<tr>
				<th>产品会员价：</th>
				<td colspan="2"><input type="text" name="product_vip_price"
					size="130" align="middle" /></td>
			</tr>
			<tr>
				<th>概要信息：</th>
				<td colspan="2"><input type="text" name="product_command_info"
					size="130" align="middle" /></td>
			</tr>
			<tr>
				<th>产品库存量：</th>
				<td colspan="2"><input type="text" name="product_count"
					size="130" align="middle" /></td>
			</tr>
			<tr>
				<th rowspan="2">产品图片：</th>
				<td rowspan="2" width="37%" align="center"><img
					src="./picture/${uploadForm.formFile.fileName }" />
				</td>
				<td><a href="back_addPicture.do">添加图片</a></td>
			</tr>
			<tr>
				<td>产品路径：<input type="text" name="product_image_path"
					value="./picture/${uploadForm.formFile.fileName }" size="57"
					align="middle" />
				</td>
			</tr>

			<tr>
				<th>产品类别：</th>
				<td colspan="2"><select name="product_type_id">
						<c:forEach items="${back_productTypeList}" var="bp">
							<option value="${bp.product_type_id }">------${bp.product_type_name }------</option>
						</c:forEach>
				</select></td>
			</tr>
			<tr>
				<th>详细信息：</th>
				<td colspan="2"><textarea rows="15" cols="110"
						name="product_detail_info"></textarea></td>
			</tr>
			<tr>
				<td colspan="3" align="center"><input type="submit" value="提交" />
					&nbsp;&nbsp; <input type="reset" value="重置" /></td>
			</tr>
		</table>
	</form>
</body>
</html>